from flask import Flask
from flask import render_template, request
import json

import pandas as pd
k_line = pd.read_csv('history_Index_k_data.csv',)

app = Flask(__name__,
            static_folder="./static", 
            static_url_path="")

@app.route('/')
def test_echarts(): 
    return render_template('bar_echarts.html')

@app.route('/temp')
def temp_echarts(): 
    tar_data = [5, 20, 36, 10, 10, 20]
    tar_data = sorted(tar_data)
    return render_template('bar_echarts_temp.html',tar_data=tar_data)
    

@app.route('/dataset')
def dataset_echarts(): 
    return render_template('bar_echarts_dataset.html')


if __name__ == "__main__":
    app.run(debug=True, host='0.0.0.0',port=5050)
